import org.w3c.dom.NodeList;

import javax.swing.*;
import java.util.Queue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-13
 * Time: 18:39
 */
public class Main {

    public static void main(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(20);
        queue.offer(10);
        System.out.println(queue.peek());
        int ret = queue.poll();
        System.out.println(queue.peek());
        System.out.println(queue.peek());
    }
}
